﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BKO.Domain.Model;

namespace BKO.DataAccesss
{
	public partial class Comp : IComp
	{
		private string _place;
		
		public string Place
		{
			get
			{
				if (_place == null)
				{
					List<string> places = new List<string>();
					if (!string.IsNullOrEmpty(FILIAL))
					{
						places.Add(FILIAL);
					}
					if (!string.IsNullOrEmpty(MESTO))
					{
						places.Add(MESTO);
					}
					if (!string.IsNullOrEmpty(kabn))
					{
						places.Add(kabn);
					}
					_place = string.Join("/", places);
				}
				return _place;
			}
		}
	}
}
